/**************************************************************************************************
|
| MediaMAX - Media Sharing Script
| http://www.isoftscripts.com
| sales@isoftscripts.com
| Version: 1.3
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.isoftscripts.com/mediamax-eula.html and to be bound by it.
|
| Copyright (c) 2008 iSoftScripts.com. All rights reserved.
|**************************************************************************************************/

Upgrade Instructions - v1.3.1 to v1.3.2

1. Open include/functions/main.php

Find (3 places):
, '&sup3;'

Add After:
, '&aelig;', '&thorn;', '&aacute;', '&eth;', '&uml;', '&ouml;', '&Ouml;'


Find (3 places):
''), $title);

Replace With:
'', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);


Find:
echo "$results"."-".$seo_title_include;

Replace With:
echo $results.$seo_title_include;


Find:
function insert_get_seotitle_from_videoid($a)

Add Above:
function seo_clean_titles_regular($title)
{
	$title = str_replace ( array ('&Agrave;', '&agrave;', '&Aacute;', '&aacute;', '&yacute;', '&Yacute;', '&Egrave;', '&egrave;', '&Eacute;', '&eacute;', '&Igrave;', '&igrave;', '&Iacute;', '&iacute;', '&Ntilde;', '&ntilde;', '&Ograve;', '&ograve;', '&Oacute;', '&oacute;', '&Ugrave;', '&ugrave;', '&Uacute;', '&uacute;', '&Uuml;', '&uuml;', '&Atilde;', '&sup3;', '&aelig;', '&thorn;', '&aacute;', '&eth;', '&uml;', '&ouml;', '&Ouml;'), array ( 'A', 'a', 'A', 'a', 'y', 'Y', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'N', 'n', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
    $title = str_replace("&amp;", "&", $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $title = str_replace(
            array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"), 
                        "", $title);
    $title = str_replace(array("&"), array("und"), $title);
    $title = htmlentities(strtolower($title));
    $title = str_replace ( array ('&auml;', '&ouml;', '&uuml;', '&szlig;'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $results = rawurlencode($title);
	return "$results";
}


Find:
$stripper = str_replace("\\n", "<br>", $stripper);

Add Below:
$stripper = str_replace("\\r", "", $stripper);
$stripper = str_replace("\\", "", $stripper);


Find:
?>

Add Above:
function insert_get_stripped_phrase2($a)
{
	$stripper = $a[details]; 
	$stripper = str_replace("\\n", "\n", $stripper);
	$stripper = str_replace("\\r", "\r", $stripper);
	return $stripper;
}


2. Open uploadaudio.php and uploadpicture.php

Find:
echo $query;

Delete that line in both files.


3. Open videowatchprorecentvideos.php

Find:
utf8_encode

Replace With:
seo_clean_titles_regular


4. categorychannels.tpl

Find all instances of:
{$baseurl}/channels/{$listvideos[i].CID}/{insert name=get_seotitle_from_cid assign=title cid=$listvideos[i].CID}

Replace With:
{$baseurl}/{$listvideos[i].seokey}


5. Replace themes/accountmenu.tpl with the new one provided in this package.


6. Open themes/viewmessage.tpl

Find:
{$msgarray[0].message}

Replace With:
{insert name=get_stripped_phrase value=a assign=messagedetails details=$msgarray[0].message}{$messagedetails}


7. Open themes/search.tpl

Find:
{$baseurl}/members/{$listvideos[i].USERID}/{$listvideos[i].username}

Replace With:
{$baseurl}/members/profile/{$listvideos[i].USERID}/{$listvideos[i].username}


8. Open themes/mysentmessages.tpl

Find:
{$listvideos[i].message}

Replace With:
{insert name=get_stripped_phrase value=a assign=messagedetails details=$listvideos[i].message}{$messagedetails}


9. Open themes/memberprofile.tpl

Find:
<span class="metaLabelP">{$lang113}: </span>
<varP>{$profilearray[0].description}</var><br />

Replace With:
<span class="metaLabelP">{$lang113}: </span><br />
<varP>{insert name=get_stripped_phrase value=a assign=pdesc details=$profilearray[0].description}{$pdesc}</var><br />


10. Open themes/editprofile.tpl

Find:
<textarea name="description" rows=6 cols=45>{$memberarray[0].description}</textarea>

Replace With:
<textarea name="description" rows=6 cols=45>{insert name=get_stripped_phrase2 value=a assign=pdesc details=$memberarray[0].description}{$pdesc}</textarea>


11. Open themes/members.tpl

Find:
{elseif $listvideos[i].gender eq "2"}

Replace With:
{elseif $listvideos[i].gender eq "0"}


12. Open themes/channeldetails.tpl

Find:
{$channelarray[0].details}

Replace With:
{insert name=get_stripped_phrase value=a assign=cdetail details=$channelarray[0].details}{$cdetail}


13. Open themes/mychannelsedit.tpl

Find:
{$channelarray[0].details}

Replace With:
{insert name=get_stripped_phrase2 value=a assign=pdesc details=$channelarray[0].details}{$pdesc}


14. Open themes/header.tpl

Find:
{if $ismainpage eq "1"}

Add Above:
{if $issignuppage eq "1"}
<script type="text/javascript" src="{$baseurl}/js/passwordmeter.js"></script>
{/if}


15. Open themes/login.tpl

Find:
					<tr>
			            <td align="right" width="160">{$lang248}&nbsp;</td>
			            <td align="left">
		                    	<input type="password" name="confirmpassword" value="" class="textField"/><br/> 	
						</td>
			        </tr>

Add Above:
					<tr>
			            <td align="right" width="160">&nbsp;</td>
			            <td align="left">
                        		<link href="{$cssurl}/passwordmeter.css" rel="stylesheet" type="text/css" />
		                    	<div class="strengthMeter" id="strengthMeter"><div class="scoreBar" id="scoreBar"></div></div>           		
			            </td>
			        </tr>
Find:
<input type="password" name="password" value="" class="textField"/>

Replace With:
<input type="password" name="password" value="" class="textField" id="password" onkeydown="updateMeter();" onkeyup="updateMeter();" />	

				
					
16. Open login.php

Find:
include("include/functions/import.php");

Add Below:
STemplate::assign('issignuppage',"1");


17. Upload the following files to your website from the package:
- css/passwordmeter.css
- js/passwordmerer.js
- images/meter_background.gif
- images/meter.gif